//switch
branchName = 'dev'

pipeline{
  agent any
  stages{
    stage('Switch'){
      steps{
        script{
          switch(branchName) {
            case 'dev':
              println("devloy to dev...") 
            break
            case "master":
              println("deploy to master...")
            break
            default:
              println("ERROR")
            break
          }
        }
      }
    }
  }
}
